package com.xd.auth.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xd.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
    * 授权范围
    */
@ApiModel(value="OauthApprovals")
@Data
@TableName(value = "oauth_approvals")
public class OauthApprovals implements Serializable {
    private static final long serialVersionUID = 4205556399691290420L;

    @TableField(value = "userId")
    @ApiModelProperty(value="")
    private String userid;

    @TableField(value = "clientId")
    @ApiModelProperty(value="")
    private String clientid;

    @TableField(value = "scope")
    @ApiModelProperty(value="")
    private String scope;

    @TableField(value = "status")
    @ApiModelProperty(value="")
    private String status;

    @TableField(value = "expiresAt")
    @ApiModelProperty(value="")
    private LocalDateTime expiresat;

    @TableField(value = "lastModifiedAt")
    @ApiModelProperty(value="")
    private LocalDateTime lastmodifiedat;

    public static final String COL_USERID = "userId";

    public static final String COL_CLIENTID = "clientId";

    public static final String COL_SCOPE = "scope";

    public static final String COL_STATUS = "status";

    public static final String COL_EXPIRESAT = "expiresAt";

    public static final String COL_LASTMODIFIEDAT = "lastModifiedAt";
}
